POV-Ray : Newsgroups : povray.beta-test : Memory limit in 3.5 ? : Re: Memory limit in 3.5 ? Server Time
29 Jul 2024 22:22:28 EDT (-0400)
  Re: Memory limit in 3.5 ?  
From: Gilles ADAM
Date: 27 Feb 2002 14:14:01
Message: <3C7D2FF2.F2522864@obs.univ-lyon1.fr>
Thorsten Froehlich wrote:

>  applications can't use more than 2 GB each (or less, 2 GB is the
> maximum for current Windows versions, Win ME might even support only 2 GB
> total).  This one allocation is already 1.5 GB, and if another GB or so is
> already used by POV-Ray, there simply isn't enough memory available.

Ok, so things are clear. I did not suppose PoV was using so much memory  for
parsing,
independently of the need for a large array for the image. Here is the script
I used
(unfortunately without the images, even URLs, as the final color image is not

on the WEB, you have to rebuild it from the three channel images provided by
NASA.
I changed the image type from JPEG to uncompressed TIFF, and this reduced the
memory
need from 1.5Gb to 1Gb; but PoV is still unhappy with that...
The script is simplified, for test purpose, but still shows the same
behaviour; I do not
think it contains anything strange :

 #include "colors.inc"
#include "shapes.inc"

global_settings { assumed_gamma 1.5 }

#declare clock1=0.35;

#declare sol = 1.8;

#declare rter = 200;
#declare diurne0 = 295;
#declare ecliptic = <23.5,0,0>;
#declare saison = <0,20,0>;

#declare theta = acos(2*(0.5-clock1));
#declare theta0=3*pi/2;
#declare a = 6;
#declare b = 8;

camera {
    angle 60
    up <0,1,0>
    right x*image_width/image_height
    #declare xC = a*rter*cos(theta+theta0) -2.4*(b-a)*rter;
    #declare yC = 0;
    #declare zC = b*rter*sin(theta+theta0);
    location < xC, yC, zC+1.5 >
    look_at 0
}

// Soleil :

#declare soleil = light_source { 0 color sol*White
                                 looks_like { sphere { 0,10
                                                     pigment { color rgb
<1,1,0.8> }
                                                     finish { ambient 1 }
                                                     }
                                            }
                               }

object { soleil translate 100*<20, 2, 0> }

// Planete :

#declare Planete = sphere { 0, rter
                            pigment {image_map {tiff
"d:\temp\mars_thr50.tif"   // 11520x5760x24, OK
                            // pigment {image_map {tiff
"d:\temp\mars_vhr.tif"     //  23040x11520x24,

// unsufficient memory
                                                map_type 1
                                                interpolate 2 }
                                      }
                            finish {ambient 0.1 diffuse 0.7}
                            no_shadow
                          }

object { Planete
         rotate <0, diurne0 - 360*clock1, 0>
         rotate ecliptic
         rotate saison
       }


Thanks a lot, anyway !

PoV is wonderfull, anyway ...

Gilles


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.